package chapter04.demo1.Example26;

public class Example26 {
    public static void main(String[] args) {
        try{
            int result = divide (4,0);
            System.out.println(result);
        }catch(Exception e){
            System.out.println("捕获异常的信息为："+ e.getMessage());
            return;
        }finally {
            System.out.println("进入finall代码块");
        }
        System.out.println("程序继续向下执行。。。");
    }
    public static int divide(int x,int y){
        int result = x/y;
        return result;
    }
}
